package com.fasteat.menu.handler;

import com.fasteat.common.entity.Result;
import com.fasteat.menu.entity.client.SearchCondition;
import com.fasteat.menu.service.client.SearchClient;
import org.springframework.stereotype.Component;

/**
 * @author run
 * @since 2021/2/23 11:44
 */
@Component
public class SearchFallback implements SearchClient {

    @Override
    public Result deleteMenuById(String id) {
        return Result.error("服务繁忙，无法删除菜谱信息");
    }

    @Override
    public Result searchMenuDefault(SearchCondition searchCondition) {
        return Result.error("服务繁忙，无法获取菜谱信息");
    }

    @Override
    public Result searchMenu(SearchCondition searchCondition, int menuCommentSort, int menuPraiseSort, int timeSort) {
        return Result.error("服务繁忙，无法获取菜谱信息");
    }
}
